package com.ittony.blog.mapper;

import com.ittony.blog.entity.ArticleTagRef;
import com.ittony.blog.entity.Tag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleTagRefMapper {

    int insert(ArticleTagRef record);

    int deleteByTagId(Integer tagId);

    int deleteByArticleId(Integer articleId);

    int countArticleByTagId(Integer tagId);

    List<Tag> listTagByArticleId(Integer articleId);


}
